<?php
/**
 * 获取token
 */
require_once dirname(dirname(__DIR__)) . "/common.php";
use app\cls\tom\Response;
use app\cls\tom\Tools;
$userInfo=$_REQUEST['third_id'];
if(empty($userInfo)){
    Response::output(-1,"缺少参数");
}
$userService = new \app\service\User();
//var_dump($userService);exit;
$re = $userService->create_token($userInfo);
Response::outputSelf($re);